package cn.itcalvin.sncoal.cth.pojo.response.pf;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
public class RespPfDetails {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为null")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "矿井名称")
    private String mineName;

    /**
     * 检查时间
     */
    @ApiModelProperty(value = "检查时间")
    @NotNull(message = "检查时间不能为null")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date checkTime;

    /**
     * 检查任务名称
     */
    @ApiModelProperty(value = "检查任务名称")
    @Size(max = 255, message = "检查任务名称最大长度要小于 255")
    @NotBlank(message = "检查任务名称不能为空")
    private String taskName;

    @ApiModelProperty(value="任务类型 1：自评 2：自评后检查")
    private Integer taskType;

    @ApiModelProperty(value="状态 1-4种")
    private Integer state;

}
